package com.ruoyi.project.countrybus.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 调度信息对象 sys_dispatch
 * 
 * @author yangwenbo
 * @date 2022-04-26
 */
public class SysDispatch extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 调度ID */
    private Long dispatchId;

    /** 路线ID */
    @Excel(name = "路线ID")
    private Long routeId;

    /** 车辆ID */
    @Excel(name = "车辆ID")
    private Long vehicleId;

    /** 完成时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "完成时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date finishTime;

    /** 调度状态（0开始 1停用） */
    @Excel(name = "调度状态", readConverterExp = "0=开始,1=停用")
    private String status;

    /** 起点ID */
    @Excel(name = "起点ID")
    private Long startingPoint;

    /** 终点ID */
    @Excel(name = "终点ID")
    private Long terminalPoint;

    public void setDispatchId(Long dispatchId) 
    {
        this.dispatchId = dispatchId;
    }

    public Long getDispatchId() 
    {
        return dispatchId;
    }
    public void setRouteId(Long routeId) 
    {
        this.routeId = routeId;
    }

    public Long getRouteId() 
    {
        return routeId;
    }
    public void setVehicleId(Long vehicleId) 
    {
        this.vehicleId = vehicleId;
    }

    public Long getVehicleId() 
    {
        return vehicleId;
    }
    public void setFinishTime(Date finishTime) 
    {
        this.finishTime = finishTime;
    }

    public Date getFinishTime() 
    {
        return finishTime;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }
    public void setStartingPoint(Long startingPoint) 
    {
        this.startingPoint = startingPoint;
    }

    public Long getStartingPoint() 
    {
        return startingPoint;
    }
    public void setTerminalPoint(Long terminalPoint) 
    {
        this.terminalPoint = terminalPoint;
    }

    public Long getTerminalPoint() 
    {
        return terminalPoint;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("dispatchId", getDispatchId())
            .append("routeId", getRouteId())
            .append("vehicleId", getVehicleId())
            .append("createTime", getCreateTime())
            .append("finishTime", getFinishTime())
            .append("status", getStatus())
            .append("startingPoint", getStartingPoint())
            .append("terminalPoint", getTerminalPoint())
            .toString();
    }
}
